<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/default.xhtml">

	<ui:define name="menu">
		<ul>
			<li><a href="#">Home</a></li>
			<li><a href="#" class="akt">Users</a></li>
			<li><a href="#">Tasks</a></li>
			<li><a href="#">Resources</a></li>
		</ul>
		<p class="vonal"><br/></p>
	</ui:define>
	
	<ui:define name="content2">
			<p id="welcome"> Welcome to my page!</p>
			<p id="end2"><br/></p>
			<p id="end">This is my first JSF project!</p>

		<h:panelGroup rendered="#{empty users}">
			<em>No registered members.</em>
		</h:panelGroup>
		
		<h:dataTable var="_user" value="#{users}"
         rendered="#{not empty users}">
         <h:column>
            <f:facet name="header">Id</f:facet>
                #{_user.id}
            </h:column>
         <h:column>
            <f:facet name="header">Name</f:facet>
                #{_user.name}
            </h:column>
         <h:column>
            <f:facet name="header">Email</f:facet>
                #{_user.email}
            </h:column>
         <h:column>
            <f:facet name="header">Phone #</f:facet>
                #{_user.phoneNumber}
            </h:column>
         <h:column>
            <f:facet name="header">REST URL</f:facet>
            <a href="#{request.contextPath}/rest/users/#{_user.id}">/rest/members/#{_user.id}</a>
         </h:column>
<!--          <f:facet name="footer">
                REST URL for all members: <a
               href="#{request.contextPath}/rest/users">/rest/users</a>
         </f:facet> -->
      </h:dataTable>
	</ui:define>
	<ui:define name="content">
         asfdsfasfsdf<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
	</ui:define>
</ui:composition>
